package com.clf.springBoot.modules.test.service;

import com.clf.springBoot.modules.common.vo.Search;
import com.clf.springBoot.modules.test.entity.City;
import com.clf.springBoot.modules.common.vo.Result;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CityService {

    Result<City> insertCity(City city);

    Result<City> updateCity(City city);

    Result<Object> deleteCityByCityId(int cityId);

    City getCityByCityId(int cityId);

    List<City> getCitiesByCountryId(int countryId);

    PageInfo<City> getCitiesBySearch(Search search);

    Result<Object> insertBatchCities(@Param("cities") List<City> cities);
}
